package com.wno704.quartz.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wno704.quartz.service.JobService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class LoadUpdateTask {
    @Autowired
    private JobService jobService;

    public void loadUpdateJob() {
        log.info("加载需要修改的job-开始~~~");
        log.info("已加载{}个job~~~~", jobService.init());
        log.info("加载需要加载的job-结束~~~");
    }
}
